package com.fx.service;

import com.fx.pojo.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.PrimitiveIterator;

public interface SysUserService {

    SysUser login(String account,String pwd);


    List<SysUser> findList(String queryRealName,
                           Integer queryRoleId,
                           Integer currPage,
                           Integer pageSize);

    Integer count( String queryRealName,Integer queryRoleId);

    boolean add(SysUser sysUser);

    SysUser findUserById(Integer id);

    SysUser findUserByAccount(String account);
}
